Skip to content

CATCH and STEMS - #321

Merged
Devko merged 5 commits into
mainfrom
claude/project-thread-178k7b
Nov 30, 2026
Merged

Devko merged 5 commits into
mainfrom
claude/project-thread-178k7b

Conversation

@Devko

@Devko Devko commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Requested by Roland · project thread

The second Fable review (2026-11-30), proposal 12, option A for both rows. Roland: "implement it, I follow your recommendation". This is the last PR of the review.

CATCH is a row in the FUNC menu's DO part, under ARR REC (FUNC + HOME, DOWN four times).

  • With REC off, every pad, KEYS and MIDI note is stamped into a ring for its track (core/catchring.hpp).
  • OK writes the last pass and the one before into the pattern, exactly as a take would have: QUANTIZE, micro-timing, LEN from the hold, chords and REC MODE all apply.
  • It covers every track at once, as one undo level, and writes at most 96 notes a press (CUT).
  • PLAY empties the ring, and notes from another pattern are never caught. The notices are CATCH: NOTHING PLAYED and CATCH: PLAY FIRST.

STEMS is the row under CATCH.

  • OK starts the stems, and starts the transport too when it is stopped. STOP or OK again ends them.
  • /RECORD/STEMS_<n>.WAV holds the eight tracks, each taken after its inserts, fader and pan, as 16 channels of 16 bits. STEMS_<n>_FX.WAV holds the send returns in stereo.
  • How it records: audio() only adds each chain into its own stem plane and copies the planes into a ring (core/stemring.hpp). The 16-bit packing and the file writes run in the main context.
  • tools/split_stems.py splits the 16-channel file into eight stereo WAVs on a computer.

Merge with main:

Checks

  • Host: build, test (5,145,061 checks), warn and check_rules all pass.
  • GCC-only scenarios: catch passes; stems 60.87% (its GCC-only tripwire is 70); jamrec 59.29%; m0, factory and visuals pass.
  • m1 reads 57.50% against main's 57.37% and fails its regression check exactly as it does on main.
  • cl6x figures still need a run on Roland's PC (docs/BUDGET.md "STEMS").
  • Unit checks W129 (CATCH) and W130 (STEMS).

Generated by Claude Code

With REC off, record_note stamps every pad, KEYS and MIDI note into a
ring per track (core/catchring.hpp). CATCH replays the last pass and the
one before through quantize_hit, as a take would have written them
(micro-timing, LEN from the hold, chords, REC MODE), every track at once,
one undo level, at most 96 notes a press. START empties the ring; notes
from another pattern origin are never caught. Host tests, scenario_catch,
W116, docs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tw2EaEK2oaJWJMdGQTNLPf
The second review's proposal 12, option A. A FUNC menu row under CATCH:
OK starts the stems (and the transport, from stopped), STOP or OK again
ends them. /RECORD/STEMS_<n>.WAV holds the eight tracks as 16 channels of
16 bits, after inserts, fader and pan; STEMS_<n>_FX.WAV the returns. The
mixer adds each chain into its own stem plane (Mixer::set_stems), audio()
queues the planes in a StemRing (core/stemring.hpp), and the main context
packs them (strata_stem_pack16) for two wav::Writers. tools/split_stems.py
makes eight stereo WAVs. Host tests, scenario_stems (59.90% GCC-only
against 56.47% for the beat alone), W117, docs, BUDGET.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tw2EaEK2oaJWJMdGQTNLPf
CATCH and STEMS sit under ARR REC in DO (DOWN four and five from SAVE). The unit checks are
W129 (CATCH) and W130 (STEMS). Screens redrawn.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tw2EaEK2oaJWJMdGQTNLPf
#312 put GEN ALL one DOWN from SAVE, and the scenario's single DOWN ran GEN ALL instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tw2EaEK2oaJWJMdGQTNLPf
@Devko
Devko merged commit 2b13347 into main Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants